package com.rightsidetech.trade.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.trade.dtos.request.TdCouponUsePageReq;
import com.rightsidetech.trade.dtos.response.TdCouponUsePageResp;
import com.rightsidetech.trade.entity.TdCouponUseRecord;

/**
 * @Author: yhr
 * @Date: 2021-12-28 17:38
 */
public interface TdCouponUseService {
    ResponseData<PageInfo<TdCouponUsePageResp>> couponUsePage(TdCouponUsePageReq req);

    int insert(TdCouponUseRecord req);

    TdCouponUseRecord selectCoupon(String code);

    void updateStatusByorderNo(String orderNo,Byte status);

    void updateByIdAndCode(Long id,String code);

    TdCouponUseRecord selectByOrderNo(String orderNo);

    int delUseCode(String code);
}
